//
//  YWReadPicCell.m
//  网易新闻
//
//  Created by Yeewii@hotmail.com on 16/6/16.
//  Copyright © 2016年 Yeewii@hotmail.com. All rights reserved.
//

#import "YWReadPicCell.h"
#import <UIImageView+WebCache.h>
#import "YWReadImgnewextra.h"

@implementation YWReadPicCell

- (void)awakeFromNib {
    [super awakeFromNib];
    _bgView.layer.masksToBounds = YES;
    _bgView.layer.cornerRadius  = 10;
    _bgView.layer.borderColor   = [UIColor greenColor].CGColor;
    _bgView.layer.borderWidth   = 1;
    
}

- (void)setSelected:(BOOL)
selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


-(void)setModel:(YWReadInternalBaseClass1 *)model
{
    _model                       = model;
    _titleLabel.text             = _model.title;

    YWReadImgnewextra *picOneUrl = _model.imgnewextra[0];
    YWReadImgnewextra *picTwoUrl = _model.imgnewextra[1];

    [_ItemImageOne sd_setImageWithURL:[NSURL URLWithString:_model.img]];
    [_ItemImageTwo sd_setImageWithURL:[NSURL URLWithString:picOneUrl.imgsrc]];
    [_ItemImageThree sd_setImageWithURL:[NSURL URLWithString:picTwoUrl.imgsrc]];
}


+(CGFloat)fixCellHeight;
{
    return 200;
}
@end
